import { REFRESH_PAGEABLE_VIDEOS } from '../constant/action-type'

const initState = {
  totalElements: 50,
  content: [{
    id: 4,
    title: 'Java集合练习讲解',
    isPublic: true,
    username: 'acey',
    coverUrl: '',
    createTime: '2019-05-06'
  }
  ]
}

export default (state = initState, action) => {
  switch (action.type) {
    case REFRESH_PAGEABLE_VIDEOS :
      return action.data
    default:
      return state
  }
}
